package demo.standard;

public class ConcreteVisitorB implements IVisitor {
    @Override
    public void visitElementA(ConcreteElementA element) {
        System.out.println("访问者B成功访问了元素A");
    }

    @Override
    public void visitElementB(ConcreteElementB element) {
        System.out.println("访问者B不允许访问元素B");
    }
}
